<?php

namespace App\Http\Controllers\Common;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class IncController extends Controller
{
    public $adminAllPower = [];             //存储所有URL
    public function __construct()
    {
        return $this->adminAllPower = array(
            '用户管理'=>array(
                '用户列表'=>array(
                    'url'=>array (
                        'get' => 'admin/User/index',
                        ),
                    'show'=>'1',
                    ),
                '用户添加' => array(
                        'url' => array (
                            'get' => 'admin/User/create',
                            ),
                        'show'=> '1'
                    )
                ),




        '商品管理'=>array(
                        '商品分类' => array(
                            'url' => array(
                                'get'=>'admin/Type/index',
                                ),
                            'show' => '1',
                            ),
                        '添加父分类' => array(
                            'url' => array(
                                'get'=>'admin/Type/create',
                                ),
                            'show' => '1',
                            ),
                        '修改商品' => array(
                            'url' => array(
                                'get' => '2.php',
                                ),
                            'show' => '0',
                            ),
                        '商品信息' => array(
                            'url' =>array(
                                'get'=>'admin/Goods/index',
                                ),
                            'show' => '1',
                            ),
                        '添加商品'=>array(
                            'url'=>array(
                                'get'=>'admin/Goods/create',
                                ),
                            'show'=>'1',
                            ),
                        '商品类型'=>array(
                            'url'=>array(
                                'get'=>'admin/Price/index',
                                ),
                            'show'=>'1',
                            ),
                        '商品图片'=>array(
                            'url'=>array(
                                'get'=>'admin/Pic/index',
                                ),
                            'show'=>'1',
                            ),
                        '商品描述'=>array(
                            'url'=>array(
                                'get'=>'admin/Text/index',
                                ),
                            'show'=>'1',
                            ),

                         ),






            '订单管理' => array(
                '订单列表' => array(
                        'url' =>array (
                            'get' => "admin/DetailController/index",
                            ),
                        'show' => '1',
                        ),

            ),




            '管理员管理' => array(
                '管理员列表' => array(
                        'url' =>array (
                            'get' => "admin/Administrator/power",
                            ),
                        'show' => '1',
                        ),
                '修改权限' => array(
                        'url' => array(
                            'get' => "admin/Administrator/editPower/{id}",
                            'post' => "admin/Administrator/updatePower"
                            ),
                        'show' => '0'
                        ),
                '编辑管理员' => array(
                        'url' => array(
                            'get' =>"admin/Administrator/edit/{id}",
                            'post' => "admin/Administrator/doEdit"
                            ),
                        'show' => '0'
                        ),
                '角色管理' => array(
                    'url' => array (
                        'get' => 'admin/Administrator/role',
                        ),
                    'show' => '1',
                    ),
                '添加角色' => array(
                    'url' => array(
                        'get' => "admin/Administrator/createRole",
                        'post' => "admin/Administrator/addRole",
                        ),
                    'show' => '0',
                    ),
                '编辑角色' => array(
                    'url' => array (
                        'get' => 'admin/Administrator/editRole/{id}',
                        'post' => 'admin/Administrator/updateRole',
                        ),
                    'show' => '0',
                    ),
                '密码修改' => array(
                    'url' => array(
                        'get' => 'admin/Administrator/editPass',
                        'post' => 'admin/Administrator/updatePass',
                        ),
                    'show' => '1',
                    )

            ),


            '积分商品管理' => array(
                '积分商品表' => array(
                    'url' => array(
                        'get' => 'admin/integral',
                        ),
                    'show' => '1',
                	),
                '添加积分商品' => array(
                    'url' => array(
                        'get'=>'admin/integral/create',

                        ),

                        'show' => '1',


                    	),

                '积分订单表' => array(
                'url' => array(
                    'get' => 'admin/integralOrder/order',
                    ),
                'show' => '1',
                ),

),

             '消息管理' => array(
                '用户反馈信息列表' => array(
                        'url' =>array (
                            'get' => "admin/suggest/index",
                            ),
                        'show' => '1',
                        ),
            ),


            '系统管理' => array(
                '系统设置' => array (
                    'url' => array (
                        'get' => 'admin/System/settings',
                        'post' => 'admin/System/saveSettings',
                        ),
                    'show' => '1',
                    ),
                '后台日志' => array(
                    'url' => array (
                        'get' => 'admin/System/adminLogs',
                        ),
                    'show' => '1',
                    ),
                '前台日志' => array(
                    'url' => array(
                        'get' => 'admin/System/homeLogs',
                        ),
                    'show' => '1',
                ),
                '友情链接' => array(
                    'url' => array(
                        'get' => 'admin/System/link',
                        ),
                    'show' => '1',
                ),
                 '添加友情链接' => array(
                    'url' => array(
                        'get' => 'admin/System/createLink',
                        'post' => 'admin/System/addLink',
                        ),
                    'show' => '0',
                ),
                 '修改友情链接' => array(
                    'url' => array(
                        'get' => 'admin/System/editLink{id}',
                        'post' => 'admin/System/updateLink',
                        ),
                    'show' => '0',
                ),
                 '删除友情链接' => array(
                    'url' => array(
                        'get' => 'admin/System/delLink{id}',
                        ),
                    'show' => '0',
                ),
              )
        );
    }
}
